package com.rritw.webtools.common;

/**
 * 常量类
 * 
 * @author ddp1j32
 * @date 2015-2-4
 */
public interface Const {

    public static final String CHARSET            = "UTF-8";

    public static final String LOGINED_FLAG       = "ok";

    public static final String EMPTY_STRING       = "";

    public static final int    HTTP_CODE_200      = 200;
    public static final int    HTTP_CODE_400      = 400;
    public static final int    HTTP_CODE_404      = 404;
    public static final int    HTTP_CODE_500      = 500;

    public static final String ADMIN_SESSION_NAME = "ADMIN_SESSION_NAME";
    public static final String USER_SESSION_NAME  = "USER_SESSION_NAME";

    // 逗号常量
    public static final String COMMA              = ",";
    // 点常量
    public static final String DOT                = ".";
    public static final String BLANK_STRING       = " ";
    public static final String QUOTATION_MARK     = "\"";
    public static final String HYPHEN             = "-";
    public static final String SLASH              = "/";
    public static final String AND                = "&";
    public static final String EQUAL_MARK         = "=";
    public static final String COLON              = ":";
    public static final String LINE_SPLITER       = "\n";
    public static final String NOT_LOGIN_FROM_URL = "NOT_LOGIN_FROM_URL";

    public static class HttpHeader {

        public static final String CONTENT_ENCODING = "Content-Encoding";
    }

    public static final String PAGE_SIZE                      = "PAGE_SIZE";
    public static final String SITE_URL                       = "SITE_URL";
    public static final String SITE_NAME                      = "SITE_NAME";
    public static final String SITE_DESC                      = "SITE_DESC";
    public static final String SITE_KEYWORDS                  = "SITE_KEYWORDS";
    // 最近发表的文章数量
    public static final int    RECENT_POST_NUM                = 5;
    // 阅读最多的文章数
    public static final int    MOST_HOT_POST_NUM              = 5;

    public static final String MANAGEMENT_CONTEXT_PATH_PREFEX = "/manage/";
    public static final String ADMIN_CONTEXT_PATH_PREFEX      = "/admin/";

    public static final String DES_ENCRYPT_KEY                = "this_is_the_entrypt_key_ok";

    public static final String APP_PATH                       = "APP_PATH";

    public static final String USER_NOT_LOGIN_IN              = "USER_NOT_LOGIN_IN";
    public static final String TRUE                           = "true";
    public static final String FALSE                          = "false";
    public static final String HTTP_PROTOCOL                  = "http://";
    public static final String HTTPS_PROTOCOL                 = "http://";

}
